package org.langqiao.thread;

/**
 * 
 * 该类会有死锁问题
 *
 */
public class StaticThreadInit {
	
	static{
		Thread t = new Thread(){
			public void run(){
				System.out.println("进入run方法");
				System.out.println(website);
				website = "www.langqiao.org";
				System.out.println("退出run方法");
			}
		};
		t.start();
		try{
			t.join();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	static String website = "www.crazyit.org";
	public static void main(String[] args){
		System.out.println(StaticThreadInit.website);
	}

}
